"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _react = require("react");
/**
 * 实时读取 value 值变更，避免 useCallback 等缓存影响
 * @param value
 * @returns
 */
var useRealtimeRef = function useRealtimeRef(value) {
  var ref = (0, _react.useRef)(value);
  ref.current = value;
  return ref;
};
var _default = useRealtimeRef;
exports.default = _default;